import service from '../utils/request'

// 1、直播模块列表
export function zhibolist(payload = {}) {
    return service.get('/zhibolist', { params: payload })
}
// 2、图文模块列表
export function imagetextlist(payload = {}) {
    return service.get('/imagetextlist', { params: payload })
}
// 3、视频模块列表
export function videolist(payload = {}) {
    return service.get('/videolist', { params: payload })
}
// 4、音频模块列表
export function audiolist(payload = {}) {
    return service.get('/audiolist', { params: payload })
}
// 5、直播数据--数据总览
export function zhibodatalist(payload = {}) {
    return service.get('/zhibodatalist', { params: payload })
}
// 6、直播数据--echart数据
export function echartsdata(payload = {}) {
    return service.get('/echartsdata', { params: payload })
}
// 7、直播数据--直播用户数据
export function zhibouserslist(payload = {}) {
    return service.get('/zhibouserslist', { params: payload })
}
// 8、直播数据--商品数据
export function productlist(payload = {}) {
    return service.get('/productlist', { params: payload })
}
// 9、直播数据--优惠券数据
export function discountslist(payload = {}) {
    return service.get('/discountslist', { params: payload })
}
// 10、直播--点击下架，发送下架请求
export function zhibo_down(payload = {}) {
    return service.patch('/zhibolist/' + payload.id, payload);
}
// 11、直播--点击删除，发送删除请求
export function zhibo_delete(payload = {}) {
    return service.delete('/zhibolist/' + payload.id, payload);
}
// 12、图文数据--数据总览
export function tuwendatalist(payload = {}) {
    return service.get('/tuwendatalist', { params: payload }) 
}
// 13、图文数据--echarts数据
export function tuwencharts(payload = {}) {
    return service.get('/tuwencharts', { params: payload })
}
// 14、图文数据--学习数据
export function studydata(payload = {}) {
    return service.get('/studydata', { params: payload })
}
// 15、图文--点击下架，发送下架请求
export function tuwen_down(payload = {}) {
    return service.patch('/imagetextlist/' + payload.id, payload);
}
// 16、图文--点击删除，发送删除请求
export function tuwen_delete(payload = {}) {
    return service.delete('/imagetextlist/' + payload.id, payload);
}
// 17、视频--点击下架，发送下架请求
export function video_down(payload = {}) {
    return service.patch('/videolist/' + payload.id, payload);
}
// 18、视频--点击删除，发送删除请求
export function video_delete(payload = {}) {
    return service.delete('/videolist/' + payload.id, payload);
}
// 19、音频--点击下架，发送下架请求
export function audio_down(payload = {}) {
    return service.patch('/audiolist/' + payload.id, payload);
}
// 20、音频--点击删除，发送删除请求
export function audio_delete(payload = {}) {
    return service.delete('/audiolist/' + payload.id, payload);
}